﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div id="display-per-page" style="text-align:center">
<% if (ViewData["per-page"] != null)
   {%>
  <a title="Number of rows" ><select class="czselect" style="width:68px"  name="display_show_page" onchange="document.getElementById('mainform').action='<%=Url.Content("~/")%><%=ViewData["now_controller"]%>ChangeNumOfRow';document.getElementById('mainform').submit();">
                <% for (int i = 10; i <= 50; i = i + 10)
                   {
                       %>
                       <option value="<%=i%>" <% if (i == Int32.Parse(ViewData["per-page"].ToString())){ %> selected="selected"<%}%> ><%=i%></option>
                   <%}
                %>
                
            </select></a>
            <%} %>
</div>

